package com.quanxi.qxaimain;

import com.alibaba.fastjson.JSONObject;

public class test3 {

    public static void main(String[] args) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("t1",555.68);
        jsonObject.put("t2",555);
        double t1 = Double.parseDouble(jsonObject.get("t1").toString());
        double t2 = Double.parseDouble(jsonObject.get("t2").toString());
    System.out.println(t1+t2);

        test3 test3 = new test3();
        System.out.println(test3.add(t1, t2));


    }

    public int add(int a,int b){
        return a+b;
    }
    public Double add(Double a,Double b){
        return  a+b;
    }
    public Double add(Double a,int b){
        return  a+b;
    }

    public Double add(int a,Double b){
        return  a+b;
    }



}
